//
//  Model.h
//  YiShi
//
//  Created by  zyn on 15/1/7.
//  Copyright (c) 2015年 maochengfang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Model : NSObject

-(NSString *)toString:(id)value; // 转为string;

- (NSArray *) getPropertyNames; // 获取model的key数组


/* 将时间戳转为时间 */
-(NSString *)getTime:(NSString *)timestamp;

/* 四舍五入保留两位小数 */
-(NSString *)get2Float:(NSString *)data;
-(NSString *)get0Float:(NSString *)data;

-(void)initWithDictionary:(NSDictionary *)dic;

@end
